import { 
	updateUserAddressApi,
	delUserAddressApi
} from '@/api/address/address.js'

const state = {
}
const getters = {
}
const mutations = {
}
const actions = {
	// 更新 添加 用户地址
	 async updateUserAddress({ commit }, data) {
		 const res = await updateUserAddressApi(data)
		 return res
	},
	// 删除用户地址信息 
	async delUserAddress({commit},data) {
		const res = await delUserAddressApi(data)
		return res
	},
}

export default{
	namespaced:true,
	state,
	getters,
	mutations,
	actions
}